package com.wtb.javatool.dao;

import com.wtb.javatool.entity.Attachment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AttachmentMapper {
    int uploadAttachment(Attachment attachment);

    int uploadAttachmentUrl(Attachment attachment);

    int deleteAttachmentByAttachmentId(Long attachmentId);

    List<Attachment> findAttachmentsByTaskId(Long taskId);
}
